Jump to content

- Introduction

- # Server Script API Return Values

  Followers 0

  VBScript → Lua

  The following names or values can be used directly within the call routing script, e.g.

      Dim nRetVal
      nRetVal = PBXCall.Hold ("*hold*")
      If (nRetVal = PBXSuccess) Then
        ...
      End If

  Additionally it is possible to receive the return value / cause from the latest connect to attempt by using the GSE build in function LastCause().

      Result Name                            Value    Remark
      PBXSuccess                             0
      PBXFailure                             1
      PBXTimeout                             2
      PBXCallTermNormalCallClearing          3
      PBXCallTermDestinationBusy             4
      PBXCallTermReject                      5
      PBXCallTermCancelled                   6
      PBXCallTermTransferred                 7
      PBXCallTermJoinedConference            8
      PBXCallTermNoAnswer                    9
      PBXCallTermToLate                      10
      PBXCallTermDirectCallImpossible        11
      PBXCallTermWrongNumber                 12
      PBXCallTermConnectToCallerImpossible   13
      PBXCallTermDestinationUnreachable      14
      PBXInvalidDTMFDigitReceived            15
      PBXCallTermRedirectionNotPossible      16
      PBXCallTermIgnoreCall                  17
      PBXCallTermNoChannelAvailable          18
      PBXCallTermNetworkCongestion           19
      PBXCallTermIncompatibleDestination     20
      PBXCallTermNumberChanged               21
      PBXCallTermOriginatorDisconnected      22
      PBXDestinationScriptStarted            23
      PBXCallTermDeflected                   24
      PBXCallTermPermissionDenied            25       from SwyxWare 6 on
      PBXCallTermSubstituteNumberDenied      26       from SwyxWare 2011 on
      PBXCallTermSecurityNegotiationFailed   27       from SwyxWare 2011 on

  By Tom Wellige

  - May 16, 2022
  Share
  Share
  Followers 0
  Previous Page Introduction
  Next Page User or Group context

## Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.